package com.zhangkeyou.map.mapweb.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zhangkeyou.map.mapweb.domain.entity.Userinfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;


//@Repository
@Mapper
public interface UserinfoMapper extends BaseMapper<Userinfo> {
    @Select("select * from sys_user")
    List<Userinfo> findAll();

    int updateHeader(@Param("userId") String userId, @Param("header_pic") String header);

    int updatePassword (@Param("userId") String userId,@Param("encodePassword")  String encodePassword);
}
